package com.xinyu.entity;

public class User {
	private Integer id;
	private String name;
	private Integer age;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getAge() {
		return age;
	}
	public void setAge(Integer age) {
		this.age = age;
	}
	public User() {
		super();
		System.out.println("user 空参 实例被创建了");
	}
	
	
	
	public User(String name, Integer age) {
		super();
		this.name = name;
		this.age = age;
	}
	
	
	@Override
	public String toString() {
		return "User [name=" + name + ", age=" + age + "]";
	}
	public void init() {
		System.out.println("user 初始化方法");
	}
	public void destroy(){
		System.out.println("user 销毁方法");
	}
	
}
